<?php defined('IN_LK') or die('Access Denied');
/**
 * lk 框架公共函数库
 * @package		lk
 * @subpackage	libraries/functions
 * @category	lk
 * @author      <yangzhiguo0903@163.com>
 */

/**
 * 转义字符串
 * @param string/array $data
 * @return mixed 
 */
function new_addslashes($data)
{
	return is_array($data) ? array_map('new_addslashes', $data) : addslashes(trim($data));
}

/**
 * 按照 RFC 1738 对 URL 进行编码
 * @param string/array $data
 * @return mixed 
 */
function new_rawurlencode($data)
{
	return is_array($data) ? array_map('new_rawurlencode', $data) : rawurlencode($data);
}

/* End of file global.func.php */
/* Location: ./system/libraries/functions/global.func.php */